package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_erp_log_hist;

import cn.com.api.mapper.ApiT_erp_log_histMapper;

import cn.com.api.service.ApiT_erp_log_histService;

/**
 * 
 **/
@Service
public class T_erp_log_histServiceImplBase {
	@Autowired
	private ApiT_erp_log_histMapper apiT_erp_log_histMapper;
    
    // 根据id获取
	public ApiT_erp_log_hist findT_erp_log_histById(Integer id){
		ApiT_erp_log_hist t_erp_log_hist = apiT_erp_log_histMapper.findT_erp_log_histById( id );
		return t_erp_log_hist;
	}
    
    //查看数据集
	public List<ApiT_erp_log_hist> findT_erp_log_hists(){
        List<ApiT_erp_log_hist> t_erp_log_hists = apiT_erp_log_histMapper.findT_erp_log_hists();
		return t_erp_log_hists;
    }
    
	// 添加
	public int insertT_erp_log_hist(ApiT_erp_log_hist t_erp_log_hist){
		int ret_I= apiT_erp_log_histMapper.insertT_erp_log_hist(t_erp_log_hist);
		return ret_I;
	}

	// 修改
	public int updateT_erp_log_hist(ApiT_erp_log_hist t_erp_log_hist){
		int ret_I= apiT_erp_log_histMapper.updateT_erp_log_hist(t_erp_log_hist);
		return ret_I;
	}
	
    // 删除
	public int deleteT_erp_log_hist(Integer id){
		int ret_I= apiT_erp_log_histMapper.deleteT_erp_log_hist( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    //获取根据order_id	
    public List<ApiT_erp_log_hist> findT_erp_log_histsByOrder_id(String order_id){
        List<ApiT_erp_log_hist> t_erp_log_hists = apiT_erp_log_histMapper.findT_erp_log_histsByOrder_id(order_id);
		return t_erp_log_hists;
    }
    		
    
    
}


